const mysql = require('mysql')
const clinet = mysql.createConnection({
  host: "localhost",
  user: "root",
  password: "root",
  database: "iwenuser"
});

function sqlFn (sql, arr, callback) {
  clinet.query(sql, arr, (err, result) => {
    if (err) throw err;
    callback(result);
  });
};
module.exports = {
  sqlFn
}
